package com.zwxbc.funplay.service;

import com.zwxbc.funplay.entity.Game;

import java.util.List;

public interface GameService {
	/**
	 * 根据id查询游戏
	 * @param gameId
	 * @return
	 */
	Game getGameById(Long gameId);
	List<Game> getGameList();
	List<Game> getGameRatingTop();
	boolean deleteGame(Long gameId);
	boolean updateGame(Game game);
	boolean addGame(Game game);
	List<Game> getGameListByCategoryId(Long gameCategoryId);
	List<Game> getGameListByNameLike(String gameName);

	/**
	 * 购买游戏
	 * @param gameId
	 * @param playerId
	 * @return
	 */
	void buyGame(Long gameId, Long playerId);

}
